import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		routertitle: {},
		Authorization: ''
	},
	mutations: {
		saverouter(state, routertitle) {
			state.routertitle.existence = routertitle.meta.existence ? routertitle.meta.existence : false
			state.routertitle.title = routertitle.meta.title ? routertitle.meta.title : ''
		},
		saveAuthorization(state, Authorization) {
			state.Authorization = Authorization
		}
	},
	actions: {},
	modules: {}
})
